home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / bubble_s.swf / scripts / DefineSprite_116__setup / frame_1 / DoAction.as
Encoding:
Text File  |  2010-08-12  |  1021 b   |  37 lines

  1. function InitColors()
  2. {
  3.    _parent.SetWCO(this.F);
  4.    _parent.SetWBarC(this.tbR);
  5.    _parent.SetWBarC(this.tbG);
  6.    _parent.SetWBarC(this.tbB);
  7.    _parent.SetWBarC(this.tbV);
  8.    _parent.SetWCR(this.rN._b);
  9.    _parent.SetWCR(this.rE._b);
  10.    _parent.SetWCR(this.rM._b);
  11.    _parent.SetWCR(this.cbAS._b);
  12.    _parent.SetWCR(this.cbBA._b);
  13.    _parent.SetWCR(this.cbS._b);
  14.    _parent.SetWCR(this.cbLQ._b);
  15.    _parent.SetWRectC(this.b1);
  16.    _parent.SetWRectC(this.b2);
  17.    _parent.SetWRectC(this.b3);
  18. }
  19. function SDrag(AN)
  20. {
  21.    if(AN == "tbR" || AN == "tbG" || AN == "tbB")
  22.    {
  23.       _parent.vDColor = (int((this.tbR._bb._x - 16) / 128 * 255 + 0.5) << 16) + (int((this.tbG._bb._x - 16) / 128 * 255 + 0.5) << 8) + int((this.tbB._bb._x - 16) / 128 * 255 + 0.5);
  24.       _parent.ColorMake(_parent.vDColor);
  25.       _parent.SetMainWC();
  26.       InitColors();
  27.    }
  28. }
  29. function BCancel()
  30. {
  31.    _parent.ColorMake(vvDColor);
  32.    _parent.SetMainWC();
  33.    InitColors();
  34. }
  35. vvDColor = _parent.vDColor;
  36. InitColors();
  37.